<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 赋值运算符
            // var age = 18;    // 把数值18 赋值给了 变量 age
            // =  +=  -=  *=  /=  %=
            // console.log(age)


            var num = 5 ;
            var curNum = 3;
            // num = num + curNum;   赋值等号两端有相同变量时 可以直接使用 += -= ....
            // 等价于
            num += curNum;  // num = num + curNum
            console.log(num)

            num *= 3 // num = num * 3
            console.log(num)

            num -= 4;   // num = num - 4
            console.log(num)

            num /= 10 ; // num = num / 10  
            console.log(num)

            num %= 2 ; // num = num % 2 
            console.log(num)

        var count = 50;
        // count = 80 - count;
        count -= 80;
        console.log(count)



    </script>
</body>
</html>